/**
 * 请求 Api 配置类
 *
 * @type {{}}
 */
const RequestApis = {

    // ===================== 用户授权认证 =====================
    userAuth: {
        // 用户登录认证
        login: "system/user/authorization/login"
    },

    // ===================== 用户管理 =====================
    userManage: {
        // 分页查询用户
        page: "system/user/page",
        // 根据id查询用户详情
        searchById: "system/user/search_by_id",
        // 根据id编辑用户
        editById: "system/user/edit_by_id",
        // 根据id删除用户
        removeById: "system/user/remove_by_id",
    },

    // ===================== 角色管理 =====================
    roleManage: {
        // 分页查询角色
        page: "system/role/page",
        // 根据id查询角色
        searchById: "system/role/search_by_id",
        // 根据id编辑角色
        editById: "system/role/edit_by_id",
        // 根据id删除角色
        removeById: "system/role/remove_by_id",
        // 新增角色
        create: "system/role/create"
    },

    // ===================== 权限管理 =====================
    permissionManage: {
        // 查询系统权限树
        list: "system/permission/list",
        // 查询页面权限集合,
        listPagePermission: "system/permission/console_page/list",
        // 为角色分配权限
        allocateRolePermission: "system/permission/allocate_role_permission",
        // 为角色分配页面权限
        allocateRolePagePermission: "system/permission/allocate_role_page",
        // 为用户分配角色
        allocateUserRole: "system/permission/allocate_user_role",
        // 刷新角色权限缓存
        refreshRoleCache: "system/permission/refresh_role_permission_cache"
    },

    // ===================== 服务治理 =====================
    serviceGovernance: {
        // 分页查询服务信息
        page: "system/service_governance/page",
        // 创建服务信息
        create: "system/service_governance/create",
        // 根据id移除服务信息
        removeById: "system/service_governance/remove_by_id",
        // 根据id查询服务信息
        searchById: "system/service_governance/search_by_id",
        // 根据id编辑服务信息
        editById: "system/service_governance/edit_by_id"
    },

    // ===================== 定时任务 =====================
    taskManage: {
        // 分页查询定时任务
        page: "system/task/page",
        // 创建定时任务
        create: "system/task/create",
        // 根据id删除定时任务
        removeById: "system/task/remove_by_id",
        // 根据id查询定时任务详情
        searchById: "system/task/search_by_id",
        // 手动执行定时任务
        execute: "system/task/execute",
        // 根据id编辑定时任务
        editById: "system/task/edit_by_id",
        // 修改开关状态
        editStatus: "system/task/edit_status",
    },

    // ===================== 消息队列 =====================
    messageManage: {
        // 查询全部主题
        searchAllTopic: "system/mq/topic/search_all",
        // 创建主题
        createTopic: "system/mq/topic/create",
        // 编辑主题描述
        editTopicDescription: "system/mq/topic/edit_description",
        // 删除主题
        removeTopic: "system/mq/topic/remove",
        // 分页查询消息
        page: "system/mq/page",
        // 重发消息
        resendMessage: "system/mq/resend",
    },

    // ===================== 系统日志 =====================
    systemLog: {
        // 分页查询操作日志
        pageOperationLog: "system/log/operation/page",
        // 分页查询链路追踪日志
        pageTraceLog: "system/log/trace/page"
    },

    // ===================== 仪表板 =====================
    dashboard: {
        // 查询后端服务实例统计信息
        searchServiceGovernanceCount: "system/dashboard/governance/search_count",
        // 查询系统接口调用计数信息
        searchOperationLogCount: "system/dashboard/api/search_count",
    }

}

export default RequestApis;